package es.us.lsi.daw.modelmysql;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import es.us.lsi.daw.model.util.BaseEntity;

@Entity
@Table(name = "lpcore_twitter_user")
public class TwitterUser extends BaseEntity {

	private static final long serialVersionUID = 6797840334075776394L;

	public static final String A_ID_TWITTER = "idTwitter";
	public static final String A_USER_NAME = "userName";
	public static final String A_NUM_FOLLOWERS = "numFollowers";

	private static final String USER_NAME = "user_name";
	public static final String C_ID_TWITTER = "id_twitter";
	private static final String C_NUM_FOLLOWERS = "num_followers";

	@Column(name = USER_NAME, nullable = false)
	private String userName;

	@Column(name = C_ID_TWITTER, unique = true)
	private Long idTwitter;
	
	@Column(name = C_NUM_FOLLOWERS)
	private Integer numFollowers;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Long getIdTwitter() {
		return idTwitter;
	}

	public void setIdTwitter(Long idTwitter) {
		this.idTwitter = idTwitter;
	}

	public Integer getNumFollowers() {
		return numFollowers;
	}

	public void setNumFollowers(Integer numFollowers) {
		this.numFollowers = numFollowers;
	}
	
}
